﻿@using BonjourQuotation.UI.Models.PartialModel
@model OperationOptionalViewModel
@{
    
}
    @Html.HiddenFor(model => model.OptionalVendorID)
    <div style="width: 741px; min-height: 260px; max-height: 320px; margin: auto; padding-top: 50px; float: left; padding-bottom: 30px; margin-left: 9px; ">
    <table class="table table-bordered table-hover table-condensed" style="margin-bottom: -1px !important; width: 720px;background-color:white;">
        <thead>
            <tr>
                <th width="15%;" class="GridHeaders font12">Start Date</th>
                <th width="15%;" class="GridHeaders font12">End Date</th>
                <th width="10%;" class="GridHeaders font12">Pax From</th>
                <th width="10%;" class="GridHeaders font12">Pax To</th>
                <th width="10%;" class="GridHeaders font12">Currency</th>
                <th width="10%;" class="GridHeaders font12">Price</th>
                <th width="10%;" class="GridHeaders font12">Bus</th>
                <th width="10%;" class="GridHeaders font12">Guide</th>
                <th width="10%;" class="GridHeaders font12">Select</th>
            </tr>
        </thead>
    </table>
    <div style="height: 400px; overflow-y: auto;">
        <table class="table table-bordered table-hover table-condensed" style="width: 720px; table-layout: fixed; background-color: white;">
            <tbody>
                @for (int ind = 0; ind < Model.Rows.Count; ind++)
                {
                    @Html.HiddenFor(model => Model.Rows[ind].OptionalID, new { @class = "OptionalIDForCheck"})
                    @Html.HiddenFor(model => Model.Rows[ind].OptionalDetailID)
                   
                        <tr>
                            <td width="15%;">@Html.LabelForModel(Model.Rows[ind].OptionalStartDate, new { @class = "table_inputs_100" })</td>
                            <td width="15%;">@Html.LabelForModel(Model.Rows[ind].OptionalEndDate, new { @class = "table_inputs_100" })</td>
                            <td width="10%;">@Html.LabelForModel(Model.Rows[ind].PaxFrom, new { @class = "table_inputs_100" })</td>
                            <td width="10%;">@Html.LabelForModel(Model.Rows[ind].PaxTo, new { @class = "table_inputs_100" })</td>
                            <td width="10%;">@Html.LabelForModel(Model.Rows[ind].SelectedCurrency, new { @class = "table_inputs_100" })</td>
                            <td width="10%;">@Html.LabelForModel(Model.Rows[ind].Price, new { @class = "table_inputs_100"})</td>
                            <td width="10%;">@Html.LabelForModel(Model.Rows[ind].BusIncluded ? "Yes" : "No", new { @class = "table_inputs_65", @style = "text-align: left" })</td>
                            <td width="10%;">@Html.LabelForModel(Model.Rows[ind].GuideIncluded ? "Yes" : "No", new { @class = "table_inputs_65", @style = "text-align: left" })</td>
                            <td width="10%;" style="text-align:center"><button class="btn14 btn60 btnheight22" type="button" onclick="SelectOptionalPrice('@Model.Rows[ind].Price')">Select</button></td>
                        </tr>
                }
            </tbody>
        </table>
    </div>
</div>







